package com.xbongbong.admin.domain.entity;/*/*/

import com.xbongbong.paas.toolbox.wrap.Entity;
import com.xbongbong.saas.domain.entity.WorkOrderStageEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * 工单备份表(镜像3,0回退)
 * @author Msz
 */
@Setter
@Getter
@ToString
public class WorkOrderStageRetainEntity extends Entity{

    private static final long serialVersionUID = -3418244844342295384L;
    /**
     * 主键id
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 备份应用id
     */
    private Long retainAppId;
    /**
     * 原来工单阶段id
     */
    private Long sourceStageId;
    /**
     * 关联 工单模板 id
     */
    private Long templateId;
    /**
     * 阶段名称
     */
    private String name;
    /**
     * 阶段排序值（从0开始）
     */
    private Integer sort;
    /**
     * 是否是最后阶段 1是，0不是
     */
    private Integer isLast;
    /**
     * 抢单的人/服务人员/部门的id
     */
    private String refRobId;
    /**
     * 抢单的人/服务人员/部门的名称
     */
    private String refRobName;
    /**
     * 抢单的类型，0人员1服务人员2部门
     */
    private Integer refRobType;
    /**
     * 负责人头像
     */
    private String userAvatar;
    /**
     * 预计耗时
     */
    private Integer expectedTime;
    /**
     * 添加时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;
    /**
     * 抢单规则 id
     */
    private Integer ruleId;

    public WorkOrderStageRetainEntity() {
    }

    public WorkOrderStageRetainEntity(WorkOrderStageEntity workOrderStageEntity) {
        this.sourceStageId = workOrderStageEntity.getId();
        this.templateId = workOrderStageEntity.getTemplateId();
        this.corpid = workOrderStageEntity.getCorpid();
        this.name = workOrderStageEntity.getName();
        this.sort = workOrderStageEntity.getSort();
        this.isLast = workOrderStageEntity.getIsLast();
        this.refRobId = workOrderStageEntity.getRefRobId();
        this.refRobName = workOrderStageEntity.getRefRobName();
        this.refRobType = workOrderStageEntity.getRefRobType();
        this.userAvatar = workOrderStageEntity.getUserAvatar();
        this.expectedTime =workOrderStageEntity.getExpectedTime();
        this.addTime = workOrderStageEntity.getAddTime();
        this.updateTime = workOrderStageEntity.getUpdateTime();
        this.del = workOrderStageEntity.getDel();
        this.ruleId = workOrderStageEntity.getRuleId();
    }
}
